package com.bw;

import com.bw.bean.Goods;
import com.bw.bean.Goods2;
import com.bw.bean.User;
import com.bw.dao.IDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IServiceImpl implements IService {

    @Autowired
    IDao iDao;

    @Override
    public List<User> list() {
        return iDao.list();
    }

    @Override
    public List<User> list2() {
        return iDao.list2();
    }

    @Override
    public List<Goods> list3() {
        return iDao.list3();
    }

    @Override
    public List<Goods2> list4() {
        return iDao.list4();
    }

    @Override
    public int add(User user) {
        return iDao.add(user);
    }

    @Override
    public int del(int id) {
        return iDao.del(id);
    }
}
